package com.ssy.lingxi.platform.manage.constant;


import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 资讯、公告、广告 - 上下架状态 - enum
 * @author fhj
 * @date 2021/01/05
 * @version 2.0.0
 */
public enum ShelfEnum {

    BE_ON_SHELF(1, "待上架"),
    ON_SHELF(2, "已上架"),
    OFF_SHELF(3, "已下架");

    private final Integer code;

    ShelfEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(),this.code);
    }
}
